package com.briup.day10.bean;

public class Manager extends Employee{
    //定义奖金
    private double bouns;
    public Manager(){

    }
    public Manager(String name, double bouns,String id) {
        super(name,id);
        this.bouns = bouns;
    }

    @Override
    public void doWork() {
        System.out.println("我是经理，有奖金，奖金为: "+bouns+",开始工作");
    }

//        //权限只能被扩大，不能被缩小

    @Override
    public String toString() {
        String msg = super.toString();
        msg="bouns"+bouns+" "+msg;
        return msg;
    }
}
